"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const base_1 = require("./base");
class MinutePartDescriber extends base_1.Describer {
    singleNumberSegment(exp) {
        return exp.padStart(2, '0') + '分';
    }
    spanSegment(exp) {
        const { start, end } = super.parseSpan(exp);
        const startPadded = start.padStart(2, '0');
        const endPadded = end.padStart(2, '0');
        return `${startPadded}到${endPadded}分之间的每一分钟`;
    }
    spanSlashNumberSegment(exp) {
        const { start, end, interval } = super.parseSpanSlashNumber(exp);
        const startPadded = start.padStart(2, '0');
        const endPadded = end.padStart(2, '0');
        return `${startPadded}到${endPadded}分之间每隔${interval}分钟`;
    }
    starSegment(exp) {
        return "每分钟";
    }
    starSlashNumberSegment(exp) {
        const interval = exp.replace('*/', '');
        return `每${interval}分钟`;
    }
}
exports.MinutePartDescriber = MinutePartDescriber;
